package org.goj.practice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.goj.common.entity.practice.ContestProblem;
import org.goj.practice.dto.ContestProblemNumDTO;
import org.goj.practice.vo.ContestProblemVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 竞赛题目 Mapper 接口
 * </p>
 *
 * @author CK
 * @since 2020-12-02
 */
public interface ContestProblemMapper extends BaseMapper<ContestProblem> {

    /**
     * 查询竞赛题目列表
     *
     * @param contestId 竞赛ID
     * @param userId    用户ID
     * @return List<ContestProblemVO>
     * @author CK
     * @date 2021/4/22 19:42
     */
    List<ContestProblemVO> listContestProblem(@Param(value = "contestId") Integer contestId, @Param(value = "userId") Integer userId);

    /**
     * 查询竞赛题目Num
     *
     * @param contestId 竞赛ID
     * @return ContestProblemNumDTO
     * @author CK
     * @date 2021/4/25 11:47
     */
    List<ContestProblemNumDTO> listContestProblemNum(Integer contestId);
}
